<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${record.id}" type="hidden" />
                <input id="isSelf" name="isSelf" th:value="${record.isSelf}" type="hidden" />

                <div class="layui-form-item">
                    <label class="layui-form-label">设备名称</label>
                    <div class="layui-input-block">
                        <input id="deviceName" name="deviceName" th:value="${record.deviceName}" readonly class="layui-input" type="text">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">设备编码</label>
                    <div class="layui-input-block">
                        <input id="deviceNum" name="deviceNum" th:value="${record.deviceNum}" readonly class="layui-input" type="text" />
                    </div>
                </div>


                <div class="layui-form-item" th:if="${record.isSelf == 0}">
                    <label class="layui-form-label">所属企业</label>
                    <div class="layui-input-block">
                        <input id="shopName" name="shopName" th:value="${record.shopName}" readonly class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">电焊工姓名</label>
                    <div class="layui-input-block">
                        <input id="workerName" name="workerName" th:value="${record.workerName}" readonly class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">电焊工电话</label>
                    <div class="layui-input-block">
                        <input id="workerPhone" name="workerPhone" th:value="${record.workerPhone}" readonly class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">电焊证编号</label>
                    <div class="layui-input-block">
                        <input id="certificateNum" name="certificateNum" th:value="${record.certificateNum}" readonly class="layui-input" type="text" />
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">审核结果：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="departCheckState" id="state" class="form-control chosen-select">
                            <option value="1" th:selected="${record.departCheckState == 1}">审核通过</option>
                            <option value="2" th:selected="${record.departCheckState == 2}">审核驳回</option>
                        </select>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">审核结果说明</label>
                    <div class="layui-input-block">
                        <input id="departCheckResult" name="departCheckResult" th:value="${record.departCheckResult}" readonly class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <div style="text-align: center;margin-top: 20px">
                        <button type="submit" onclick="update()" class="layui-btn layui-btn-normal" >提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/device/welding/record/detail.js}"></script>
</body>
</html>
